﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.DAL;


namespace KPIS.GERP.GHRMS.BLL
{
    public class TrainingInstituteBLL : ITrainingInstituteBLL
    {

        private static readonly ITrainingInstituteDAL dal = new TrainingInstituteDAL();
        ConvertNullable cn = new ConvertNullable();
        public TrainingInstituteBLL()
        {

        }
        public IList<TrainingInstituteInfo> GetFull()
        {
            return dal.GetFull();
        }
        public TrainingInstituteInfo GetData(string training_ins_seq)
        {
            int TrainingInsSeq = Convert.ToInt32(training_ins_seq);            
            return dal.GetData(TrainingInsSeq);
        }
        public void Insert(TrainingInstituteInfo info)
        {
            try
            {
                dal.Insert(info);
            }
            catch
            {
                throw;
            }
        }
        public void Update(TrainingInstituteInfo info)
        {
            try
            {
                dal.Update(info);
            }
            catch
            {
                throw;
            }
        }
        public void Delete(TrainingInstituteInfo info)
        {
            try
            {
                dal.Delete(info);
            }
            catch
            {
                throw;
            }
        }
    }
}
